package Test04;

public class SequenceQueue2Test {
    public static void main(String[] args) {
        SequenceQueue2<Integer> queue = new SequenceQueue2<Integer>();
        for (int i = 0; i < 10; i++) {
            queue.enQueue(i);
        }
        queue.nextOrder();

        for (int i = 0; i < 5; i++) {
            System.out.println(queue.deQueue()+"出队");
        }
        queue.nextOrder();

        for (int i = 0; i < 30; i++) {
            queue.enQueue(i);
        }
        queue.nextOrder();
    }
}
